package com.lancoo.cvas.pojo.common;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.util.List;

/**
 * @ClassName PageInfo
 * @Description 分页数据统一封装
 * @Author quin
 * @Date 2023/1/4 17:16
 */
@Data
@Accessors(chain = true)
@ApiModel(description = "分页信息")
public class PageInfo<T> implements Serializable {

    @ApiModelProperty(value = "当前页编号")
    private long currentPage;

    @ApiModelProperty(value = "每页的数量")
    private long pageSize;

//    @ApiModelProperty(value = "当前页的数量")
//    private int size;

    @ApiModelProperty(value = "总记录数")
    private long total;

    @ApiModelProperty(value = "总页数")
    private long pages;

    @ApiModelProperty(value = "结果集")
    private List<T> list;

    //拆分课表专用
    @ApiModelProperty(value = "能否拆课表")
    private boolean canSub;
}
